var local_ajax = false;

var BizHttpAction = {
    checkauth: {
        url: local_ajax ? 'simulatedata/data/json/stockor/auth/checkauth.json' : '/stockor/auth/checkauth.json',
        method: local_ajax ? 'GET' : 'GET'
    },
    login: {
        url: local_ajax ? 'simulatedata/data/json/stockor/auth/login.json' : '/stockor/auth/login.do',
        method: local_ajax ? 'GET' : 'POST'
    },
    logout: {
        url: local_ajax ? 'simulatedata/data/json/stockor/auth/logout.json' : '/stockor/auth/logout.do',
        method: local_ajax ? 'GET' : 'GET'
    },
    userinfo: {
        url: local_ajax ? 'simulatedata/data/json/stockor/auth/userinfo.json' : '/stockor/auth/userinfo.json',
        method: local_ajax ? 'GET' : 'GET'
    },
    /**持仓查询模块-通过代码查询股票 */
    queryStockBySlimSymbol: {
        url: local_ajax ? 'simulatedata/data/json/stockor/base/queryStockBySlimSymbol.json' : '/stockor/base/queryStockBySlimSymbol.json',
        method: local_ajax ? 'GET' : 'GET'
    },
    /**持仓查询模块-查询 */
    queryExecStockHoldRealTimeVO: {
        url: local_ajax ? 'simulatedata/data/json/stockor/exechold/queryExecStockHoldRealTimeVO.json' : '/stockor/exechold/queryExecStockHoldRealTimeVO.json',
        method: local_ajax ? 'GET' : 'GET'
    },
    /**持仓查询模块-新增/编辑持仓股票信息*/
    upsertExecStockHold: {
        url: local_ajax ? 'simulatedata/data/json/stockor/exechold/upsertExecStockHold.json' : '/stockor/exechold/upsertExecStockHold.do',
        method: local_ajax ? 'GET' : 'POST'
    },
    /**持仓查询模块-删除持仓股票信息*/
    deleteExecStockHold: {
        url: local_ajax ? 'simulatedata/data/json/stockor/exechold/deleteExecStockHold.json' : '/stockor/exechold/deleteExecStockHold.do',
        method: local_ajax ? 'GET' : 'POST'
    },
    /**持仓查询模块-现价卖出分析，抓取现价并保存数据 */
    fetchCurrentPrice2SelloutAnalyze: {
        url: local_ajax ? 'simulatedata/data/json/stockor/fetch/fetchCurrentPrice2SelloutAnalyze.json' : '/stockor/fetch/fetchCurrentPrice2SelloutAnalyze.action',
        method: local_ajax ? 'GET' : 'GET'
    },
    /**持仓查询模块-编辑智能卖出监控 */
    updateMonitor2StockHold4Sellout: {
        url: local_ajax ? 'simulatedata/data/json/stockor/exechold/updateMonitor2StockHold4Sellout.json' : '/stockor/exechold/updateMonitor2StockHold4Sellout.do',
        method: local_ajax ? 'GET' : 'POST'
    },
    /**持仓查询模块-查询买入点增长日志 */
    queryZenSelloutSuggestionBySlimsymbol: {
        url: local_ajax ? 'simulatedata/data/json/stockor/exechold/queryZenSelloutSuggestionBySlimsymbol.json' : '/stockor/exechold/queryZenSelloutSuggestionBySlimsymbol.json',
        method: local_ajax ? 'GET' : 'GET'
    },

    /**买入点查询模块-查询 */
    queryBuyinPointWithLog: {
        url: local_ajax ? 'simulatedata/data/json/stockor/statist/queryBuyinPointWithLog.json' : '/stockor/statist/queryBuyinPointWithLog.json',
        method: local_ajax ? 'GET' : 'GET'
    },
    /**买入点查询模块-查看成长日志 */
    queryZenBuyinPointGrowingLogByPointId: {
        url: local_ajax ? 'simulatedata/data/json/stockor/statist/queryZenBuyinPointGrowingLogByPointId.json' : '/stockor/statist/queryZenBuyinPointGrowingLogByPointId.json',
        method: local_ajax ? 'GET' : 'GET'
    },
    /**抓取现价并完成买入点分析任务 */
    fetchMultiCurrentPrice2BuyinAnalyze: {
        url: local_ajax ? 'simulatedata/data/json/stockor/statist/fetchMultiCurrentPrice2BuyinAnalyze.json' : '/stockor/statist/fetchMultiCurrentPrice2BuyinAnalyze.json',
        method: local_ajax ? 'GET' : 'GET'
    },
    /**查询Klin数据，显示在ECharts图表上 */
    queryStandardKlineList: {
        url: local_ajax ? 'simulatedata/data/json/stockor/statist/queryStandardKlineList.json' : '/stockor/statist/queryStandardKlineList.json',
        method: local_ajax ? 'GET' : 'GET'
    },
    // queryStandardKlineList_M30: {
    //     url: local_ajax ? 'simulatedata/data/json/stockor/statist/queryStandardKlineList.json_M30.json' : '/stockor/statist/queryStandardKlineList.json',
    //     method: local_ajax ? 'GET' : 'GET'
    // },
    // queryStandardKlineList_M05: {
    //     url: local_ajax ? 'simulatedata/data/json/stockor/statist/queryStandardKlineList.json_M30.json' : '/stockor/statist/queryStandardKlineList.json',
    //     method: local_ajax ? 'GET' : 'GET'
    // },
    // queryStandardKlineList_M01: {
    //     url: local_ajax ? 'simulatedata/data/json/stockor/statist/queryStandardKlineList.json_M30.json' : '/stockor/statist/queryStandardKlineList.json',
    //     method: local_ajax ? 'GET' : 'GET'
    // },



    /**买入点成长日志查询模块-加载查询面板动态条件组件 */
    ajaxBuildSearchPanel: {
        url: 'resources/data/json/stockor/buyinpointgrowinglog/loadCondition.json',
        method: 'GET'
    },
    /**买入点成长日志查询模块-查询 */
    queryBuyinPointGrowingLog: {
        url: local_ajax ? 'simulatedata/data/json/stockor/statist/queryBuyinPointGrowingLog.json' : '/stockor/statist/queryBuyinPointGrowingLog.json',
        method: local_ajax ? 'GET' : 'GET'
    },

    /**保存雪球认证Cookie */
    saveXueQiuAuthCookie: {
        url: local_ajax ? 'simulatedata/data/json/stockor/fetch/saveXueQiuAuthCookie.json' : '/stockor/fetch/saveXueQiuAuthCookie.do',
        method: local_ajax ? 'GET' : 'POST'
    }
}